package com.xiaoyun.service;

import com.xiaoyun.bo.AddressBO;
import com.xiaoyun.pojo.UserAddress;

import java.util.List;

public interface AddressService {

    List<UserAddress> queryAll(String userId);

    void addNewUserAddress(AddressBO addressBo);

    void updateUserAddress(AddressBO addressBo);

    void deleteUserAddress(String userId, String addressId);

    void updateUserAddressToBeDefault(String userId, String addressId);

    UserAddress queryUserAddress(String userId, String addressId);
}
